﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TXTD.Admin.Framework.CostomAttribute
{
    /// <summary>
    /// 自定义模型验证
    /// </summary>
    public class ModelValidationAttribute : ValidationAttribute
    {
        public override bool IsValid(object? value)
        {
            return base.IsValid(value);
        }
        protected override ValidationResult? IsValid(object? value, ValidationContext validationContext)
        {
            string d  = base.ErrorMessage;
            return ValidationResult.Success;
        }
    }
}
